
TGT_FILE="svc.dat"
TGT_DIR1=/sw/tuxedo/env/jtlee

function getsrc
{
echo -- target : $1
ftp -n <<!
open $1
user $2 $3
pwd
bi
prompt
cd $TGT_DIR1
mget ${TGT_FILE}
bye

!
}

getsrc 192.168.112.31 tux xhddlf00

